package com.cf.game.cowboy.handler.model;

import java.util.ArrayList;
import java.util.List;

/**
 * cf-game-UserStakeItem
 * 用户押注
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/3/27 14:45
 */
public class UserStake {

    private Double total = 0d;

    private List<Double> money = new ArrayList<>();


    public List<Double> getMoney() {
        return money;
    }

    public void setMoney(List<Double> money) {
        this.money = money;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public void addMoney(double my) {
        this.money.add(my);
        this.total += my;
    }

    @Override
    public String toString() {
        return "UserStake{" +
                "total=" + total +
                ", money=" + money +
                '}';
    }
}
